<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>5权重的叠加</title>

  <style>
    /* 复合选择器的权重  存在叠加  */
    li {
      color: red;
    }

    ul li {
      color: green;
    }

    .nav li {
      color: pink;
    }
  </style>
</head>

<body>

  <ul class="nav">
    <li>大猪蹄子</li>
    <li>大肘子</li>
    <li>猪尾巴</li>
  </ul>



</body>

</html>